import util from '@/js/util/util.js';
let Template = [
    {
        id: 'tree_0001',
        component: 'Tree',
        style: {
            width: {
                value: 250,
                pixel: 250,
                unit: 'px'
            },
            height: {
                value: 500,
                pixel: 500,
                unit: 'px'
            },
            top: {
                value: 0,
                pixel: 0,
                unit: 'px'
            },
            left: {
                value: 0,
                pixel: 0,
                unit: 'px'
            },
            bottom: {
                value: '',
                unit: 'px'
            },
            right: {
                value: '',
                unit: 'px'
            },
            fontSize: 24,
            fontWeight: 500,
            backgroundImage: {
                angle: 90,
                color: []
            },
            borderRadius: {
                value: 0,
                unit: 'px'
            },
            borderWidth: 0,
            borderStyle: 'solid',
            borderColor: '#FFFFFF',
            boxShadow: {
                level: 0,
                vertical: 0,
                blur: 0,
                spread: 0,
                color: '#000000FF'
            },
            rotate: 0, // 旋转角度 number
            opacity: 100,
            'z-index': 1,
            backdropFilter: 0,
            filter: 0
        },
        attribute: {
            visible: true,
            page: 0,
            highlight: false,
            locked: false,
            treeHasCheckBox: false,
            treeCheckStrictly: true
        },
        animate: [],
        event: [],
        data: [
            {
                name: '楼层选择',
                id: util.getID(),
                children: [
                    {
                        name: '空调设备',
                        id: util.getID(),
                        children: []
                    },
                    {
                        name: '人脸识别设备',
                        id: util.getID(),
                        children: []
                    },
                    {
                        name: '视频监控',
                        id: util.getID(),
                        children: [
                            {
                                name: '一楼视频监控',
                                id: util.getID(),
                                children: [
                                    {
                                        name: '一楼视频',
                                        id: util.getID(),
                                        children: []
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
            {
                name: '楼层选择',
                id: util.getID(),
                children: [
                    {
                        name: '空调设备',
                        id: util.getID(),
                        children: []
                    },
                    {
                        name: '人脸识别设备',
                        id: util.getID(),
                        children: []
                    },
                    {
                        name: '视频监控',
                        id: util.getID(),
                        children: [
                            {
                                name: '视频监控',
                                id: util.getID(),
                                children: []
                            }
                        ]
                    }
                ]
            }
        ]
    }
];
export default Template;